package com.strategy.checkmoney;

/**
 * @Classname Client
 * @Description 测试客户端
 * @Date 2022/4/27 19:58
 * @Created by 666
 */
public class Client {
    public static void main(String[] args) {
        PayStrategy RmbPayStrategy = new RmbPay();
        PayStrategy MeiYuanPayStrategy = new MeiYuanPay();

        PayContext rmbpayContext = new PayContext("张三", 200, RmbPayStrategy);
        PayContext meiyuanpayContext = new PayContext("java", 100, RmbPayStrategy);
        RmbPayStrategy.pay(rmbpayContext);
        RmbPayStrategy.pay(meiyuanpayContext);

    }





}
